#ifndef SEQUENCE_SCHEDULER_H
#define SEQUENCE_SCHEDULER_H

#include "abstract_scheduler.h"

namespace scheduler
{
/**
 * @brief:  顺序，结束条件：一个失败 or 全部成功
 * @author: sherlock_lht
 */
class SequenceScheduler: public AbstractScheduler
{
public:
    explicit SequenceScheduler(const std::string &name);
    ~SequenceScheduler() override;

    [[deprecated("sequence scheduler cannot set task")]] bool setTask(const task::AbstractTaskConstPtr &task) override;

    [[deprecated("sequence scheduler cannot set task")]] bool setScheduler(const AbstractSchedulerConstPtr &scheduler) override;
};

}

#endif //SEQUENCE_SCHEDULER_H
